home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / eindex.dir / 00705_Script_705 < prev    next >
Text File  |  1995-09-06  |  2KB  |  97 lines

  1. --òò StartMovie Handlers
  2. --** July 15 95 2 P.M.
  3. --** Needs to have functions added to reference link cast members
  4.  
  5. Global gBtn17,gBtn18,gWhatMovie,gTheHelpIsOn,┬
  6.              gReInitGlobals, gIndexManager
  7.  
  8. on StartMovie
  9.   set gBtn17 = birth(script "a3StateButton", 47, 1925, "SE141819.AIF", "CrossAIndex", "HandCursor")
  10.   set gBtn18 = birth(script "a3StateButton", 48, 1928, "SE141819.AIF", "CrossVIndex", "HandCursor")
  11.   set gWhatMovie = "EgyptW"
  12.   if gReInitGlobals = 1 then
  13.     EGlobalSetUpFromTheatre
  14.     set gReInitGlobals = 0
  15.   end if
  16.   EGlobalsSetUpIndex
  17.   set gTheHelpIsOn = 0
  18.   initializeIndex
  19.   set the cursor of sprite 3 = [1904 , 1905]
  20.   set spriteCount = 3
  21.   repeat while (spriteCount < 29)
  22.     set the cursor of sprite spriteCount = [1904 , 1905]
  23.     set spriteCount = spriteCount + 1
  24.   end repeat
  25.   set the cursor of sprite 40 = [1904 , 1905]
  26. end
  27.  
  28. on StopMovie
  29.   hidecontrol (gBtn17)
  30.   hidecontrol (gBtn18)
  31.   set gBtn17 = 0  
  32.   set gBtn18 = 0
  33.   unload 1, 360
  34.   disposeIndexSystem
  35.   set spriteCount = 3
  36.   repeat while (spriteCount < 29)
  37.     set the cursor of sprite spriteCount = -1 
  38.     set spriteCount = spriteCount + 1
  39.   end repeat
  40.   set the cursor of sprite 40 = -1
  41. end
  42.  
  43. on resetIndex
  44.   resetIndex (gIndexManager)
  45. end
  46.  
  47.  
  48. --òòInitialize Index System Code
  49. on initializeIndex
  50.   --òò use sprite 2 to hold sub menu
  51.   puppetSprite 2,TRUE
  52.   --òò use sprite 40 to hold sub memu icon art
  53.   puppetSprite 40,TRUE
  54.   set gIndexManager = birth ( script "aIndexManager")
  55.   initIndex(gIndexManager)
  56. end
  57.  
  58. --òòDispose of objects
  59. on disposeIndexSystem
  60.   puppetSprite 2, FALSE
  61.   puppetSprite 40,FALSE
  62.   set gIndexManager = 0
  63. end
  64.  
  65. --òòUser input interface handlers : Track mouse movement and clicks
  66. on rolloverIndex
  67.   testIndexRollover(gIndexManager)
  68. end
  69.  
  70. on clickAlpha
  71.   clickAlpha(gIndexManager)
  72. end
  73.  
  74. on clickTopic 
  75.   clickTopic(gIndexManager)
  76. end
  77.  
  78. on clickRefLink
  79.   set horzPos = the mouseH
  80.   set vertPos = the mouseV
  81.   clickRefLink(gIndexManager ,horzPos,vertPos)
  82. end
  83.  
  84.  
  85. on doBeep
  86.   --beep 3
  87.   --put "gotFunctionString"
  88. end
  89.  
  90. on setTEXT startC,stopC 
  91.   repeat while (startC <= stopC)
  92.     put startC
  93.     set the scriptText of cast startC = "--0,0,0,0,doBeep;%"
  94.     set startC = startC + 1
  95.   end repeat
  96. end
  97.